from odoo import models, fields, api, _


class Company(models.Model):
    _inherit = 'res.company'

    org_ids = fields.One2many('accountcore.org', 'company_id', string='核算机构')
    account_ids = fields.One2many('accountcore.account', 'company_id', string='会计科目')

    period_lock_date = fields.Date(string="Lock Date for Non-Advisers", help="Only users with the 'Adviser' role can edit accounts prior to and inclusive of this date. Use it for period locking inside an open fiscal year, for example.")
